﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Studentyemian/Student.Master" AutoEventWireup="true" CodeBehind="stukecheng.aspx.cs" Inherits="zlh.Studentyemian.stukecheng" %>
<asp:Content ID="Content1" ContentPlaceHolderID="stuConPlaHd" runat="server">
    <p>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<asp:Label ID="coursename" runat="server" CssClass="word" Text="课程名字："></asp:Label>
        <asp:TextBox ID="counametxt" runat="server" CssClass="textbox"></asp:TextBox>
        <asp:Button ID="selectname" runat="server" CssClass="button" Text="确认查询" />
    </p>
<p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="CourseId" DataSourceID="SqlDataSource1" HorizontalAlign="Center" Width="754px">
        <Columns>
            <asp:BoundField DataField="CourseId" HeaderText="CourseId" ReadOnly="True" SortExpression="CourseId" />
            <asp:BoundField DataField="CourseName" HeaderText="CourseName" SortExpression="CourseName" />
            <asp:BoundField DataField="Coursexuefen" HeaderText="Coursexuefen" SortExpression="Coursexuefen" />
            <asp:BoundField DataField="TeaId" HeaderText="TeaId" SortExpression="TeaId" />
        </Columns>
        <HeaderStyle CssClass="gridxiewHeaderstyle" />
        <RowStyle CssClass="gridviewrowstyle" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014112130ConnectionString14 %>" SelectCommand="SELECT * FROM [Course] WHERE ([CourseName] = @CourseName)">
        <SelectParameters>
            <asp:ControlParameter ControlID="coursename" Name="CourseName" PropertyName="Text" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
</p>
</asp:Content>
